var czkz_yxq="60";
//获取本地标签
function loadLocalTag_new(sfzh) {
    $.ajax({
        url: "/bqms/sd/loadBqmsSdDataList?zjhm=" + sfzh,
        type: "GET",
        success: function (result) {
            if (result.success) {
                var cont = result.content.list;
                var ptl = '';
                tagboxcont = cont;
                cont.map(function (m, n) {
                    ptl += "<span index='" + n + "' class='biaoqiansd' onclick='openTagWin_new(this)'>" + m.mssx + "</span>";
                })
                $("#rybq_sd").html(ptl);
            } else {
                console.error('获取数据错误')
            }
        },
        error: function (XmlHttpRequest, textStatus, errorThrown) {
            console.log("系统异常");
        }
    });
}


/**
 * 标签弹窗框
 * */
function openTagWin_new(btn) {
    var index = Number($(btn).attr('index'));
    var data = tagboxcont[index];
    var params = new Object();
    params.zjhm = data.zjhm;
    params.mssxid = data.mssxid;
    var mssxurl = "/bqms/sd/loadJcmpBqmsSdDataListAll";
    $.ajax({
        url: mssxurl,
        data : params,
        contentType : 'application/json;charset=utf-8',
        type: "GET",
        success: function (result) {
            if (result.success) {
                var cont = result.content.list;
                var html = '';
                html += '<div class="scroll-tag">';
                var ptl = '';
                cont.map(function (m, n) {
                    html += '	<div class="tag-div">';
                    html += '		<table class="tag-table">';
                    html += '			<tr>';
                    html += '				<th>标签项</th>';
                    html += '				<td>'+m.mssx+'</td>';
                    html += '				<th>详细描述</th>';
                    html += '				<td>'+m.msxx+'</td>';
                    html += '				<th>信息来源</th>';
                    html += '				<td>'+m.ly+'</td>';
                    html += '			</tr>';
                    html += '			<tr>';
                    html += '				<th>备注</th>';
                    html += '				<td colspan="5">'+m.memo+'</td>';
                    html += '			</tr>';
                    html += '		</table>';
                    html += '	</div>';
                });
                html += '</div>';

                layer.open({
                    type: 1,
                    closeBtn: 1,
                    shade: 0.2,
                    title: ['标签详情', 'font-size:16px;font-weight:bold;color:#32A7EB;'],
                    fix: false,
                    area: ['800px', '500px'],
                    content: html,
                    cancel:function(index, layero) {
                    	//scrollFn.startScroll();
                    }
                });
            } else {
                console.error('获取数据错误')
            }
        },
        error: function (XmlHttpRequest, textStatus, errorThrown) {
            console.log("系统异常");
        }
    });

};


//获取部标签
function loadbjbq_new(zjhm) {
    //标签部分
    if(zjhm!=null && wlhj != 'gaw'){
        var param = new Object();
        param.sfzh = zjhm;
        $.ajax({
            url:"/bqms/sd/loadBjBq",
            type: "GET",
            data:param,
            success: function (result) {
                var success=result.success;
                if(success==true){
                    var bqhtml = '';
                    var ryzjh = result.sfzh;
                    var rybs_div="rybq_"+ryzjh;
                    var cont = result.content;
                    if(cont){
                        $.each(cont,function (m,bqObj) {
                            var rybs = bqObj.rybs;
                            bqhtml += '<span class="biaoqianbl">'+rybs+'</span>';
                        });
                        $("#rybq_bl").html(bqhtml);
                    }
                }else{
                    console.error('获取数据错误')
                }
            },
            error: function (XmlHttpRequest, textStatus, errorThrown) {
                console.log("系统异常");
            }
        });
    }
}

/**
 * 人员头像进行打标（多个）
 * 使用说明：需提供参数param对象，包含zjh（人员证件号）、xm（人员姓名）
 */
function loadRyBsNew_new(zjhm) {
    //先将div元素插入，然后在往div中填充各类标识
    if (zjhm != null) {
        var ctx = $("#ctx").val();
/*        if (ctx == undefined) {
            ctx = path;
        }*/
        var params = new Object();
        //1.人员标识
        var rybs_div = "rybs_" + zjhm;
        var dzda_rybs_div = "dzda_rybs_" + zjhm;
        //+++
        //1.跟盯、可疑、重点
        var u = "/jbxx/jbxxAliasData?zjh=" + zjhm;
        jQuery.ajax({
            url: u,
            type: "post",
            data: params,
            success: function (data) {
            	var zjhm = data.content.zjh;
                var mark = data.content;
                var rybz = "";
                var lktb = "";
                //1.人员标识
                if (mark != undefined && mark != "null") {
                    var kyry = mark.kyry != undefined ? mark.kyry : "";//可疑人员
                    var zddqry = mark.zddqry != undefined ? mark.zddqry : "";//重点地区人员
                    var sfgdry = mark.sfgdry != undefined ? mark.sfgdry : "";//是否跟盯人员
                    var rylb = mark.rylb != undefined ? mark.rylb : "";//人员类别
                    var sxqk = mark.sxqk != undefined ? mark.sxqk : "";//视讯人员
                    var qwgjqk = mark.qwgjqk != undefined ? mark.qwgjqk : "";//前往过其他国家
                    var wghjqk = mark.wghjqk != undefined ? mark.wghjqk : "";//取得过国外户籍
                    var lkjb = mark.lkjb != undefined ? mark.lkjb : "";//列控级别
                    var skxs = mark.skxs != undefined ? mark.skxs : "";//涉恐系数
                    var qf = mark.qf != undefined ? mark.qf : "";//

                    if (kyry == '1') {
                        rybz += "<img src='/static/images/sdrybs/kyry.png' width='20px' height='20px' style='cursor:pointer;margin-top: 9px;' title='可疑人员'/>";
                    }
                    if (zddqry == '1') {
                        rybz += "<img src='/static/images/sdrybs/zddqry.png' width='20px' height='20px' style='cursor:pointer;margin-top: 9px;' title='重点地区人员'/>";
                    }
                    if (sfgdry > 0) {
                        rybz += "<img src='/static/images/sdrybs/gd_red.png' width='20px' height='20px' style='cursor:pointer;margin-top: 9px;' title='跟盯人员'/>";
                    }
                    if (sxqk > 0) {
                        rybz += "<img src='/static/images/sdrybs/sxqk.png' width='20px' height='20px' style='cursor:pointer;margin-top: 9px;' title='视询人员'/>";
                    }
                    if (qwgjqk > 0) {
                        rybz += "<img src='/static/images/sdrybs/qwgjqk.png' width='20px' height='20px' style='cursor:pointer;margin-top: 9px;' title='前往过其他国家'/>";
                    }
                    if (wghjqk > 0) {
                        rybz += "<img src='/static/images/sdrybs/wghjqk.png' width='20px' height='20px' style='cursor:pointer;margin-top: 9px;' title='取得国外户籍'/>";
                    }
                    if (qf != "") {
                        if (qf.indexOf("1") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-1jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='一级重点人'/>";
                        }
                        if (qf.indexOf("2") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-2jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='二级重点人'/>";
                        }
                        if (qf.indexOf("3") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-3jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='三级重点人'/>";
                        }
                        if (qf.indexOf("4") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-zdgzr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点关注人'/>";
                        }
                        if (qf.indexOf("5") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-gzrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='关注人'/>";
                        }
                        if (qf.indexOf("6") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-lkrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='列控人'/>";
                        }
                        if (qf.indexOf("7") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-zzdry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='准重点人'/>";
                        }
                        if (qf.indexOf("98") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-czrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='常口'/>";
                        }
                        if (qf.indexOf("99") > -1) {
                            rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-ldrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='流口'/>";
                        }

                    }
                    if (lkjb != undefined && lkjb != "") {
                        if (lkjb == "一级") {
                            lktb = "	<div class='com_lkjb_icon1'></div>";
                        } else if (lkjb == "二级") {
                            lktb = "	<div class='com_lkjb_icon2'></div>";
                        } else if (lkjb == "三级") {
                            lktb = "	<div class='com_lkjb_icon3'></div>";
                        }
                    }
                    if (rylb.length > 0) {
                        var rylb_arr = rylb.split(",");
                        var rylbMap = {
                                "15":"/static/images/sdrybs/rylb_btn/rylb_btn_15.png",
                                "14":"/static/images/sdrybs/rylb_btn/rylb_btn_14.png",
                                "13":"/static/images/sdrybs/rylb_btn/rylb_btn_13.png",
                                "12":"/static/images/sdrybs/rylb_btn/rylb_btn_12.png",
                                "11":"/static/images/sdrybs/rylb_btn/rylb_btn_11.png",
                                "10":"/static/images/sdrybs/rylb_btn/rylb_btn_10.png",
                                "9":"/static/images/sdrybs/rylb_btn/rylb_btn_09.png",
                                "8":"/static/images/sdrybs/rylb_btn/rylb_btn_08.png",
                                "7":"/static/images/sdrybs/rylb_btn/rylb_btn_07.png",
                                "6":"/static/images/sdrybs/rylb_btn/rylb_btn_06.png",
                                "5":"/static/images/sdrybs/rylb_btn/rylb_btn_05.png",
                                "4":"/static/images/sdrybs/rylb_btn/rylb_btn_04.png",
                                "3":"/static/images/sdrybs/rylb_btn/rylb_btn_03.png",
                                "2":"/static/images/sdrybs/rylb_btn/rylb_btn_02.png",
                                "1":"/static/images/sdrybs/rylb_btn/rylb_btn_01.png",
                            };
                        for (var k = 0; k < rylb_arr.length; k++) {
                            var k_rylb = rylb_arr[k];
                            if (k_rylb != undefined) {
                                rybz += "<img src='" + rylbMap[k_rylb] + "' width='13px' height='13px' style='margin-left:2px;margin-top:9px;'/>";
                            }
                        }
                    }
                }

                var dic_content = "	<div class='com_flbs_div'>" + rybz + "</div>";
               $(".bqImg").html(dic_content);
            }
        });
    } 
}



//获取本地标签
function loadLocalTag(shenfen) {
    shenfen.map(function (item, i) {
        $.ajax({
            url:"/bqms/sd/loadBqmsSdDataList?zjhm=" + item,
            type: "GET",
            success: function (result) {
                if (result.success) {
                    var cont = result.content.list;
                    var ptl = '';
                    tagboxcont[i] = cont;
                    cont.map(function (m, n) {
                        ptl += "<span index='" + i + "' childindex='" + n + "' class='tagspan' onclick='openTagWin(this)'>" + m.mssx + "</span>";
                    })
                    $('.tags_' + item).html(ptl);
                } else {
                    console.error('获取数据错误')
                }
            },
            error: function (XmlHttpRequest, textStatus, errorThrown) {
                console.log("系统异常");
            }
        });
    });
}

/**
 * 标签弹窗框
 * */
function openTagWin(btn) {
    var index1=Number($(btn).attr('index'));
    var index2=Number($(btn).attr('childindex'));
    var data = tagboxcont[index1][index2] ;
    var params = new Object();
    params.zjhm = data.zjhm;
    params.mssxid = data.mssxid;
    var mssxurl = "/bqms/sd/loadJcmpBqmsSdDataListAll";
    $.ajax({
        url: mssxurl,
        data : params,
      /*  contentType : 'application/json',*/
        type: "GET",
        success: function (result) {
            if (result.success) {
                var cont = result.content.list;
                var html = '';
                html += '<div class="scroll-tag">';
                var ptl = '';
                cont.map(function (m, n) {
                    html += '	<div class="tag-div">';
                    html += '		<table class="tag-table">';
                    html += '			<tr>';
                    html += '				<th>标签项</th>';
                    html += '				<td>'+m.mssx+'</td>';
                    html += '				<th>详细描述</th>';
                    html += '				<td>'+m.msxx+'</td>';
                    html += '				<th>信息来源</th>';
                    html += '				<td>'+m.ly+'</td>';
                    html += '			</tr>';
                    html += '			<tr>';
                    html += '				<th>备注</th>';
                    html += '				<td colspan="5">'+m.memo+'</td>';
                    html += '			</tr>';
                    html += '		</table>';
                    html += '	</div>';
                });
                html += '</div>';

                layer.open({
                    type: 1,
                    // skin:'layui-layer-rim',
                    closeBtn: 1,
                    shade: 0.2,
                    title: ['标签详情', 'font-size:16px;font-weight:bold;color:#32A7EB;'],
                    fix: false,
                    area: ['800px', '500px'],
                    content: html
                });
            } else {
                console.error('获取数据错误')
            }
        },
        error: function (XmlHttpRequest, textStatus, errorThrown) {
            console.log("系统异常");
        }
    });

};

//获取部标签
function loadbjbq(zjhmap) {
    //标签部分
    if(zjhmap!=undefined && wlhj != 'gaw'){
        var param = new Object();
        for(var ryzjh in zjhmap){
            param.sfzh = ryzjh;
            $.ajax({
                url:"/bqms/sd/loadBjBq",
                type: "GET",
                data:param,
                success: function (result) {
                        var bqhtml = '';
                        var ryzjh = result.sfzh;
                        var rybs_div="rybq_"+ryzjh;
                        var cont = result.content;
                        if(cont){
                            $.each(cont,function (m,BqObj) {
                                var rybs = switchNull(BqObj.rybs);
                                var rylb = switchNull(BqObj.rylb);
                                var bsqc = switchNull(BqObj.bsqc);
                                bqhtml += '<span class="biaoqianlb">'+rybs+'</span>';
                            });
                         //   $("."+rybs_div).empty();
                            $("."+rybs_div).html(bqhtml);
                        }
                   
                },
                error: function (XmlHttpRequest, textStatus, errorThrown) {
                    console.log("系统异常");
                }
            });
        }
    }
}

/**
 * 人员头像进行打标（多个）
 * 使用说明：需提供参数param对象，包含zjh（人员证件号）、xm（人员姓名）
 */
function loadRyBsNew(zjhmap) {
    //先将div元素插入，然后在往div中填充各类标识
    if (zjhmap != undefined) {
        var zjh = "";
        for (var k in zjhmap) {
            var ryzjh = k;
            /*var ctx = $("#ctx").val();*/
       /*     if (ctx == undefined) {
                ctx = path;
            }*/
            var params = new Object();
            //1.人员标识
            var rybs_div = "rybs_" + ryzjh;
            var dzda_rybs_div = "dzda_rybs_" + ryzjh;
            //+++
            //1.跟盯、可疑、重点
            var u = "/jbxx/jbxxAliasData?zjh=" + ryzjh;
            jQuery.ajax({
                url: u,
                type: "GET",
                data: params,
                success: function (data) {
                	var ryzjh = data.content.zjh;
                    var mark = data.content;
                    var rybz = "";
                    var lktb = "";
                    //1.人员标识
                    if (mark != undefined && mark != "null") {
                        var kyry = mark.kyry != undefined ? mark.kyry : "";//可疑人员
                        var zddqry = mark.zddqry != undefined ? mark.zddqry : "";//重点地区人员
                        var sfgdry = mark.sfgdry != undefined ? mark.sfgdry : "";//是否跟盯人员
                        var rylb = mark.rylb != undefined ? mark.rylb : "";//人员类别
                        var sxqk = mark.sxqk != undefined ? mark.sxqk : "";//视讯人员
                        var qwgjqk = mark.qwgjqk != undefined ? mark.qwgjqk : "";//前往过其他国家
                        var wghjqk = mark.wghjqk != undefined ? mark.wghjqk : "";//取得过国外户籍
                        var lkjb = mark.lkjb != undefined ? mark.lkjb : "";//列控级别
                        var skxs = mark.skxs != undefined ? mark.skxs : "";//涉恐系数
                        var qf = mark.qf != undefined ? mark.qf : "";//

                        if (kyry == '1') {
                            rybz += "<img src='/static/images/sdrybs/kyry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='可疑人员'/>";
                        }
                        if (zddqry == '1') {
                            rybz += "<img src='/static/images/sdrybs/zddqry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点地区人员'/>";
                        }
                        if (sfgdry > 0) {
                            rybz += "<img src='/static/images/sdrybs/gd_red.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='跟盯人员'/>";
                        }
                        if (sxqk > 0) {
                            rybz += "<img src='/static/images/sdrybs/sxqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='视询人员'/>";
                        }
                        if (qwgjqk > 0) {
                            rybz += "<img src='/static/images/sdrybs/qwgjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='前往过其他国家'/>";
                        }
                        if (wghjqk > 0) {
                            rybz += "<img src='/static/images/sdrybs/wghjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='取得国外户籍'/>";
                        }
                        if (qf != "") {
                            if (qf.indexOf("1") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-1jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='一级重点人'/>";
                            }
                            if (qf.indexOf("2") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-2jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='二级重点人'/>";
                            }
                            if (qf.indexOf("3") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-3jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='三级重点人'/>";
                            }
                            if (qf.indexOf("4") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-zdgzr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点关注人'/>";
                            }
                            if (qf.indexOf("5") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-gzrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='关注人'/>";
                            }
                            if (qf.indexOf("6") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-lkrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='列控人'/>";
                            }
                            if (qf.indexOf("7") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-zzdry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='准重点人'/>";
                            }
                            if (qf.indexOf("98") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-czrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='常口'/>";
                            }
                            if (qf.indexOf("99") > -1) {
                                rybz += "<img src='/static/images/sdrybs/rylb_btn/icon-ldrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='流口'/>";
                            }

                        }
                        if (lkjb != undefined && lkjb != "") {
                            if (lkjb == "一级") {
                                lktb = "	<div class='com_lkjb_icon1'></div>";
                            } else if (lkjb == "二级") {
                                lktb = "	<div class='com_lkjb_icon2'></div>";
                            } else if (lkjb == "三级") {
                                lktb = "	<div class='com_lkjb_icon3'></div>";
                            }
                        }
                        if (rylb.length > 0) {
                            var rylb_arr = rylb.split(",");
                            var rylbMap = {
                                "15":"/static/images/sdrybs/rylb_btn/rylb_btn_15.png",
                                "14":"/static/images/sdrybs/rylb_btn/rylb_btn_14.png",
                                "13":"/static/images/sdrybs/rylb_btn/rylb_btn_13.png",
                                "12":"/static/images/sdrybs/rylb_btn/rylb_btn_12.png",
                                "11":"/static/images/sdrybs/rylb_btn/rylb_btn_11.png",
                                "10":"/static/images/sdrybs/rylb_btn/rylb_btn_10.png",
                                "9":"/static/images/sdrybs/rylb_btn/rylb_btn_09.png",
                                "8":"/static/images/sdrybs/rylb_btn/rylb_btn_08.png",
                                "7":"/static/images/sdrybs/rylb_btn/rylb_btn_07.png",
                                "6":"/static/images/sdrybs/rylb_btn/rylb_btn_06.png",
                                "5":"/static/images/sdrybs/rylb_btn/rylb_btn_05.png",
                                "4":"/static/images/sdrybs/rylb_btn/rylb_btn_04.png",
                                "3":"/static/images/sdrybs/rylb_btn/rylb_btn_03.png",
                                "2":"/static/images/sdrybs/rylb_btn/rylb_btn_02.png",
                                "1":"/static/images/sdrybs/rylb_btn/rylb_btn_01.png",
                            };
                            for (var k = 0; k < rylb_arr.length; k++) {
                                var k_rylb = rylb_arr[k];
                                if (k_rylb != undefined) {
                                    rybz += "<img src='" + rylbMap[k_rylb] + "' width='13px' height='13px' style='margin-left:2px;margin-top:9px;'/>";
                                }
                            }
                        }
                        //涉恐系数
                        /*if(skxs!=undefined&&skxs.length>0){
                            rybz+="<font size='1' color='red' style='float:right;font-weight: bold;margin-right: 10px;'>"+skxs+"</font>";
                        }*/
                    }

                    var dic_content = "";
                    dic_content += "	<div class='com_tup_div'><img src='" + photoImgUrl + (!isNull(ryzjh) ? ryzjh : ryzjh) + "&i=" + Math.random() + "'/></div>";
                    dic_content += lktb;
                    dic_content += "	<div class='com_xm_div'>" + zjhmap[ryzjh] + "</div>";
                  //  dic_content += "	<div class='com_flbs_div'>" + rybz + "</div>";
                   $(".rybs_" + ryzjh).html(dic_content);
                }
            });
            //---
        }
    } else {
        for (var k in zjhmap) {
            var ryxm = zjhmap[k];
            var ryzjh = k;
            var rybs_div = "rybs_" + ryzjh;
            var dic_content = "";
            dic_content += "	<div class='com_tup_div'><img src='" + photoImgUrl + ryzjh + "'/></div>";
            dic_content += "	<div class='com_xm_div'>" + ryxm + "</div>";
            dic_content += "	<div class='com_flbs_div'></div>";
            $(".rybs_" + ryzjh).html(dic_content);
        }
    }
}


/**
 * 标签系统中的人员标签信息
 * 使用说明：需提供参数param对象，包含zjh（人员证件号）、xm（人员姓名）
 */
function loadRyBqxx(zjhmap) {
    //先将div元素插入，然后在往div中填充各类标识
    if (zjhmap != undefined) {
        var zjh = "";
        for (var k in zjhmap) {
            var ryzjh = k;
            zjh += "," + k;
        }
        if (zjh != "") {
            var ctx = $("#ctx").val();
            if (ctx == undefined) {
                ctx = path;
            }
            var params = new Object();
            //电子档案人员标签
//			var u=ctx+"/system/getDzdaTagsByZjhs?zjh="+zjh;
            //标签系统人员标签
            var u = ctx + "/system/getTagsByZjhs?zjh=" + zjh;
            jQuery.ajax({
                url: u,
                type: "post",
                data: params,
                success: function (data) {
                    var success = data.success;
                    if (success) {
                        var rybsmap = data.rybsmap;
                        //1.人员标识
                        if (rybsmap != undefined) {
                            for (var r_zjh in rybsmap) {
                                var dzda_rybs_div = "dzda_rybs_" + r_zjh;
                                var rybs = rybsmap[r_zjh];
                                if (rybs == undefined) {
                                    return;
                                }
                                var sfzhm = switchNull(rybs.sfzhm);//身份证号码
                                var bqxx = rybs.bqxx;//标签系统中的人员标签信息
                                var dzdabqxx = rybs.dzdabqxx;//电子档案中的人员标签信息

                                //电子档案人员标签信息
//								$("."+dzda_rybs_div).html(getDzdaRybs((!isNull(sfzhm)?sfzhm:r_zjh),dzdabqxx));
                                //标签系统人员标签信息
                                if (bqxx) {
                                    $("." + dzda_rybs_div).html(getBqxtRybs((!isNull(sfzhm) ? sfzhm : r_zjh), bqxx.BQXX));
                                }

                            }
                        }
                    }
                }
            });
        }
    }
}

/*****************************************************************
 * 在逃人员是否抓获标识
 * @param zjh
 */
function loadZtryZhbs(zjh) {
    //先将div元素插入，然后在往div中填充各类标识
    if (zjh != "") {
        var ctx = $("#ctx").val();
        if (ctx == undefined) {
            ctx = path;
        }
        var params = new Object();
        var u = ctx + "/system/getZtryZhbsByZjh?zjhs=" + zjh;
        jQuery.ajax({
            url: u,
            type: "post",
            data: params,
            success: function (data) {
                data = eval('(' + data + ')');
                var success = data.success;
                var zhbsmap = data.result;
                if (success) {
                    if (zhbsmap) {
                        for (var i = 0; i < zhbsmap.length; i++) {
                            var item = zhbsmap[i];
                            var zjhm = switchNull(item.ZJHM);
                            var zhbs = switchNull(item.RYZT);
                            var zhrq = switchNull(item.ZHRQ);
                            var rybs_div = "rybs_" + zjhm;
                            var html = "";
                            if (zhbs == "1") {
                                if (zhrq) {
                                    zhrq = zhrq.replace(/-/g, ".");
                                }
                                html = "<div class='yzhpic'><span class='span-text'>已抓获(全国在逃库)</span><span class='span-date'>" + zhrq + "</span><img src='" + ctx + "/static/images/rwfk/yzh-bs.png'></div>";
                            } else if (zhbs == "2") {
                                if (zhrq) {
                                    zhrq = zhrq.replace(/-/g, ".");
                                }
                                html = "<div class='yzhpic'><span class='span-text'>已抓获(金雕系统核查)</span><span class='span-date'>" + zhrq + "</span><img src='" + ctx + "/static/images/rwfk/yzh-bs.png'></div>";
                            }
                            $("." + rybs_div).after(html);
                        }
                    }
                }
            }
        });
    }
}


/**
 * 大屏----------------------------------------------------------------------------------
 * 人员头像进行打标（多个）
 * 使用说明：需提供参数param对象，包含user_sfzh（用户名） 、 zjh（人员证件号）、xm（人员姓名） 、model_dm（涉恐系数查看权限代码）
 */
function loadDpRyBs(zjh) {
    //先将div元素插入，然后在往div中填充各类标识
    if (zjh != "") {
        var ctx = $("#ctx").val();
        if (ctx == undefined) {
            ctx = path;
        }
        var params = new Object();
        //1.跟盯、可疑、重点
        var u = ctx + "/system/getRyjbxxAndBsListByZjhs?zjh=" + zjh;
        jQuery.ajax({
            url: u,
            type: "post",
            data: params,
            success: function (data) {
                var rybsmap = data.rybsmap;
                //1.人员标识
                if (rybsmap != undefined) {
                    for (var r_zjh in rybsmap) {
                        var rybs_div = "rybs_" + r_zjh;
                        var rybs = rybsmap[r_zjh];
                        if (rybs == undefined) {
                            return;
                        }
                        var rybz = "";
                        var lktb = "";
                        var xm = switchNull(rybs.xm);//姓名
                        var sfzhm = switchNull(rybs.sfzhm);//身份证号码
                        var kyry = switchNull(rybs.kyry);//可疑人员
                        var zddqry = switchNull(rybs.zddqry);//重点地区人员
                        var sfgdry = switchNull(rybs.sfgdry);//是否跟盯人员
                        var rylb = switchNull(rybs.rylb);//人员类别
                        var sxqk = switchNull(rybs.sxqk);//视讯人员
                        var qwgjqk = switchNull(rybs.qwgjqk);//前往过其他国家
                        var wghjqk = switchNull(rybs.wghjqk);//取得过国外户籍
                        var lkjb = switchNull(rybs.lkjb);//列控级别
                        var skxs = switchNull(rybs.skxs);//涉恐系数
                        if (kyry == '1') {
                            rybz += "<img src='" + ctx + "/static/images/gj/smallicon/kyry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='可疑人员'/>";
                        }
                        if (zddqry == '1') {
                            rybz += "<img src='" + ctx + "/static/images/gj/smallicon/zddqry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点地区人员'/>";
                        }
                        if (sfgdry > 0) {
                            rybz += "<img src='" + ctx + "/static/images/gj/smallicon/gd_red.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='跟盯人员'/>";
                        }
                        if (sxqk > 0) {
                            rybz += "<img src='" + ctx + "/static/images/gj/smallicon/sxqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='视询人员'/>";
                        }
                        if (qwgjqk > 0) {
                            rybz += "<img src='" + ctx + "/static/images/gj/smallicon/qwgjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='前往过其他国家'/>";
                        }
                        if (wghjqk > 0) {
                            rybz += "<img src='" + ctx + "/static/images/gj/smallicon/wghjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='取得国外户籍'/>";
                        }
                        if (lkjb != undefined && lkjb != "") {
                            if (lkjb == "一级") {
                                lktb = "	<div class='com_lkjb_icon1'></div>";
                            } else if (lkjb == "二级") {
                                lktb = "	<div class='com_lkjb_icon2'></div>";
                            } else if (lkjb == "三级") {
                                lktb = "	<div class='com_lkjb_icon3'></div>";
                            }
                        }
                        if (rylb.length > 0) {
                            var rylb_arr = rylb.split(",");
                            var rylbMap = {
                                "15": ctx + "/static/images/gj/smallicon/rylb_btn_15.png",
                                "14": ctx + "/static/images/gj/smallicon/rylb_btn_14.png",
                                "13": ctx + "/static/images/gj/smallicon/rylb_btn_13.png",
                                "12": ctx + "/static/images/gj/smallicon/rylb_btn_12.png",
                                "11": ctx + "/static/images/gj/smallicon/rylb_btn_11.png",
                                "10": ctx + "/static/images/gj/smallicon/rylb_btn_10.png",
                                "9": ctx + "/static/images/gj/smallicon/rylb_btn_09.png",
                                "8": ctx + "/static/images/gj/smallicon/rylb_btn_08.png",
                                "7": ctx + "/static/images/gj/smallicon/rylb_btn_07.png",
                                "6": ctx + "/static/images/gj/smallicon/rylb_btn_06.png",
                                "500": ctx + "/static/images/rybs/rylb_btn_05.png",
                                "400": ctx + "/static/images/rybs/rylb_btn_04.png",
                                "300": ctx + "/static/images/rybs/rylb_btn_03.png",
                                "200": ctx + "/static/images/rybs/rylb_btn_02.png",
                                "100": ctx + "/static/images/rybs/rylb_btn_01.png"
                            };
                            for (var k = 0; k < rylb_arr.length; k++) {
                                var k_rylb = rylb_arr[k];
                                if (k_rylb != undefined) {
                                    rybz += "<img src='" + rylbMap[k_rylb] + "' width='13px' height='13px' style='margin-left:2px;margin-top:9px;'/>";
                                }
                            }
                        }

                        //涉恐系数
                        if (skxs != undefined && skxs.length > 0) {
                            rybz += "<b class='skxs'>" + skxs + "</b>";
                        }
                        var dic_content = "";
                        dic_content += "	<div class='com_tup_div'><img src='" + photoImgUrl + (!isNull(sfzhm) ? sfzhm : r_zjh) + "&i=" + Math.random() + "'/></div>";
                        dic_content += lktb;
                        dic_content += "	<p class='name-div'>" + xm + "</p>";
                        dic_content += "	<div class='com_flbs_div'>" + rybz + "</div>";
                        $("." + rybs_div).html(dic_content);

                    }

                }

            }
        });
    }
}

/**
 * 标签系统人员标签信息解析
 * @param bqxx
 * @returns {String}
 */
function getBqxtRybs(zjh, bqxx) {
    var bqxx_html = "";
    var bqxx_rybs_html = "";
    if (bqxx && bqxx.length > 0) {
        bqxx_html += '<div class="dzda-div">';
        var bqxx_html_big = "<ul>";
        var bqxx_html_small = "<div class='d_rybs'>";
        for (var m = 0; m < bqxx.length; m++) {
            var BQDM = switchNull(bqxx[m].BQDM);
            var BQMC = switchNull(bqxx[m].BQMC);
            var BQQC = switchNull(bqxx[m].BQQC);
            if (BQMC.length == 1) {
                //获取图标样式
                var cls = ""
                if (BQMC == '重') {
                    cls = "label-style-a";
                } else if (BQMC == '逃') {
                    cls = "label-style-b";
                } else if (BQMC == '恐') {
                    cls = "label-style-c";
                } else if (BQMC == '失') {
                    cls = "label-style-d";
                } else if (BQMC == '疑') {
                    cls = "label-style-e";
                } else if (BQMC == '线') {
                    cls = "label-style-f";
                } else if (BQMC == '变') {
                    cls = "label-style-g";
                } else if (BQMC == '未') {
                    cls = "label-style-h";
                } else if (BQMC == '询') {
                    cls = "label-style-i";
                } else if (BQMC == '罪') {
                    cls = "label-style-j";
                } else if (BQMC == '政') {
                    cls = "label-style-k";
                } else if (BQMC == '前') {
                    cls = "label-style-l";
                } else if (BQMC == '押') {
                    cls = "label-style-m";
                } else if (BQMC == '刑') {
                    cls = "label-style-n";
                } else if (BQMC == '释') {
                    cls = "label-style-o";
                } else if (BQMC == '极') {
                    cls = "label-style-p";
                } else if (BQMC == '伊') {
                    cls = "label-style-q";
                } else if (BQMC == '扣') {
                    cls = "label-style-r";
                } else {
                    cls = "label-style-r";
                }
                bqxx_html_small += "<a class='" + cls + "' title=\"" + BQQC + "\" onclick='showTagDetailByZjhAndBqdm(\"" + zjh + "\",\"" + BQDM + "\")'>" + BQMC + "</a>";
            } else {
                bqxx_html_big += "<li class='tag clearfix' title=\"" + BQQC + "\" onclick='showTagDetailByZjhAndBqdm(\"" + zjh + "\",\"" + BQDM + "\")'><b class='leftBg'></b><div class='tag_b_div'>" + BQMC + "</div><b class='rightBg'></b></li>";
            }
        }
        bqxx_html_big += "</ul>";
        bqxx_html_small += "</div>";
        bqxx_html += bqxx_html_big + bqxx_html_small + '</div>';
    }
    return bqxx_html;
}

/**
 * 标签系统人员标签详细信息
 * @param zjh
 * @param bqdm
 */
function showTagDetailByZjhAndBqdm(zjh, bqdm) {
    var params = new Object();
    params.zjh = zjh;
    params.bqdm = bqdm;
    var layindex;
    var url = path + "/system/getTagDetailByZjhAndBqdm";
    $.ajax({
        url: url,
        type: "POST",
        data: params,
        beforeSend: function () {
            layindex = layLoad();
        },
        success: function (result) {
            if (result) {
                var success = result.success;
                var content = result.content;
                if (success == true && content) {
                    content = eval("(" + content + ")");
                    var BQMC = content.BQMC;
                    var BQMX = content.BQMX;
                    var html = '';
                    html += "<table class='mark-table'>";
                    var index = 1;
                    //keyvalue分隔符^$^  字段之间分隔符^#^ 多条记录之间分隔符||
                    if (BQMX != null && BQMX.length > 0) {
                        var details_1_arr = BQMX.split("||");
                        for (var index_1 in details_1_arr) {
                            var details_2 = details_1_arr[index_1];
                            if (details_2) {
                                var details_2_arr = details_2.split("^#^");
                                var count = details_2_arr.length;
                                for (var index_2 in details_2_arr) {
                                    var details_3 = details_2_arr[index_2];
                                    if (details_3) {
                                        var details_3_arr = details_3.split("^$^");
                                        var key = details_3_arr[0];
                                        var value = details_3_arr[1];
                                        if (index_2 % 2 == 0) {
                                            html += "		<tr>";
                                            html += "			<th>" + key + "</th>";
                                            if (index_2 == (count - 1) && count % 2 == 1) {
                                                html += "		<td colspan='3'>" + value + "</td>";
                                            } else {
                                                html += "		<td>" + value + "</td>";
                                            }
                                        } else if (index_2 % 2 == 1) {
                                            html += "			<th>" + key + "</th>";
                                            html += "			<td>" + value + "</td>";
                                            html += "		</tr>";
                                        }
                                    }
                                }
                                if (count % 2 == 1) {
                                    html += "		</tr>";
                                }

                                html += "<tr>";
                                html += '<td colspan="4"></td>';
                                html += "</tr>";
                            }
                        }
                    } else {
                        html += "<tr><td colspan='4'>暂无详细信息</td></tr>";
                    }
                    html += '</table>';
                    layer.open({
                        title: '标签详情展示',
                        type: 1,
                        skin: 'layui-layer-molv',
                        closeBtn: 1,
                        anim: 2,
                        shadeClose: true,
                        area: ['700px', '400px'],
                        content: html
                    });
                } else {
                    var html = '';
                    html += "<table class='mark-table'>";
                    html += "<tr><td colspan='4'>暂无详细信息</td></tr>";
                    html += '</table>';
                    layer.open({
                        title: '标签详情展示',
                        type: 1,
                        skin: 'layui-layer-molv',
                        closeBtn: 1,
                        anim: 2,
                        shadeClose: true,
                        area: ['700px', '400px'],
                        content: html
                    });
                }
            }
            layClose(layindex);
        },
        error: function (XmlHttpRequest, textStatus, errorThrown) {
            console.log("系统异常！");
            layAlert("系统异常！", "fail");
        },
        complete: function (XMLHttpRequest, textStatus) {
            console.log("url:[ " + url + " ] 请求结果：[ " + textStatus + " ]");
            //关闭加载提示
            layClose(layindex);
        }
    });
}

/**
 * 电子档案标签信息解析
 * @param dzdabqxx
 * @returns {String}
 */
function getDzdaRybs(zjh, dzdabqxx) {
    var dzdabqxx_html = "";
    var dzdabqxx_rybs_html = "";
    if (dzdabqxx && dzdabqxx.length > 0) {
        dzdabqxx_html += '<div class="dzda-div"><ul>';
        for (var m = 0; m < dzdabqxx.length; m++) {
            var code = switchNull(dzdabqxx[m].code);
            var name = switchNull(dzdabqxx[m].name);
            var value = switchNull(dzdabqxx[m].value);
            var details = switchNull(dzdabqxx[m].details);
            if (code == 'ZDDQRY') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">重点地区人员</div><b class="rightBg"></b></li>';
            } else if (code == 'GDRY') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">跟盯人员</div><b class="rightBg"></b></li>';
            } else if (code == 'SXQK') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">视询人员</div><b class="rightBg"></b></li>';
            } else if (code == 'QWGJQK') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">重点国家停留人员</div><b class="rightBg"></b></li>';
            } else if (code == 'WGHJQK') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">取得外籍身份</div><b class="rightBg"></b></li>';
            } else if (code == 'SKRY') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">涉恐人员</div><b class="rightBg"></b></li>';
            } else if (code == 'KYRY') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">可疑人员</div><b class="rightBg"></b></li>';
            } else if (code == 'FCJGB') {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div">新疆副处级以上干部</div><b class="rightBg"></b></li>';
            } else if (code == 'RYBS') {
                var dzda_rybs = name;
                var dzda_rybs_dic = value;
                if (dzda_rybs) {
                    var dzda_rybs_arr = dzda_rybs.split(',');
                    for (var i = 0; i < dzda_rybs_arr.length; i++) {
                        var tag = dzda_rybs_arr[i];
                        //获取图标样式
                        var cls = ""
                        if (tag == '重') {
                            cls = "label-style-a";
                        } else if (tag == '逃') {
                            cls = "label-style-b";
                        } else if (tag == '恐') {
                            cls = "label-style-c";
                        } else if (tag == '失') {
                            cls = "label-style-d";
                        } else if (tag == '疑') {
                            cls = "label-style-e";
                        } else if (tag == '线') {
                            cls = "label-style-f";
                        } else if (tag == '变') {
                            cls = "label-style-g";
                        } else if (tag == '未') {
                            cls = "label-style-h";
                        } else if (tag == '询') {
                            cls = "label-style-i";
                        } else if (tag == '罪') {
                            cls = "label-style-j";
                        } else if (tag == '政') {
                            cls = "label-style-k";
                        } else if (tag == '前') {
                            cls = "label-style-l";
                        } else if (tag == '押') {
                            cls = "label-style-m";
                        } else if (tag == '刑') {
                            cls = "label-style-n";
                        } else if (tag == '释') {
                            cls = "label-style-o";
                        } else if (tag == '极') {
                            cls = "label-style-p";
                        } else if (tag == '伊') {
                            cls = "label-style-q";
                        } else if (tag == '扣') {
                            cls = "label-style-r";
                        } else {
                            cls = "label-style-r";
                        }
                        //获取title
                        var tag_dic = "";
                        if (dzda_rybs_dic != "" && dzda_rybs_dic != undefined) {
                            var tags = dzda_rybs_dic.split('#');
                            for (var j = 0; j < tags.length; j++) {
                                var tags_values = tags[j].split('q');
                                if (tags_values[0] == tag) {
                                    tag_dic = tags_values[1];
                                }
                            }
                        }
                        dzdabqxx_rybs_html += "<a class='" + cls + "' title=\"" + tag_dic + "\" onclick=\"openDzdzRYBS(this)\" attr1='" + details + "'>" + tag + "</a>";
                    }
                }
            } else {
                dzdabqxx_html += '<li class="tag clearfix"><b class="leftBg"></b><div class="tag_b_div" onclick="showDzdaTagDetails(\'' + zjh + '\',\'' + code + '\');">' + name + '</div><b class="rightBg"></b></li>';
            }
        }
        dzdabqxx_html += '</ul>';
        if (dzdabqxx_rybs_html) {
            dzdabqxx_html += '<div class="d_rybs">' + dzdabqxx_rybs_html + '</div></div>';
        }
    }
    return dzdabqxx_html;
}

/**
 * 电子档案标签详细信息
 * @param obj
 */
function openDzdzRYBS(obj) {
    var info = $(obj).attr("attr1");
    var tag = $(obj).html();
    if (info) {
        var html = '';
        html += "<table class='mark-table'>";
        var infos = info.split('$');
        for (var i = 0; i < infos.length; i++) {
            var details = infos[i].split('^');
            var bqx = details[0];
            if (bqx == tag) {
                html += "<tr>";
                html += '<th>标签项</th>';
                html += '<td>' + details[0] + '</td>';
                html += '<th>标签原始描述</th>';
                html += '<td>' + details[1] + '</td>';
                html += '<th>信息来源</th>';
                html += '<td>' + details[3] + '</td>';
                html += "</tr>";
                html += "<tr>";
                html += '<th>标签详细描述</th>';
                html += '<td colspan="5">' + details[2] + '</td>';
                html += "</tr>";
                html += "<tr class='border-0'><td colspan='6'></td></tr>";
            }
        }
        html += '</table>';
        layer.open({
            title: '标签详情展示',
            type: 1,
            skin: 'layui-layer-molv',
            closeBtn: 1,
            anim: 2,
            shadeClose: true,
            area: ['800px', '550px'],
            content: html
        });
    }
}

/**
 * 电子档案标签详细信息
 * @param zjh
 * @param tagcode
 */
function showDzdaTagDetails(zjh, tagcode) {
    if (tagcode == 'QKRYJS') {
        var params = new Object();
        params.zjh = zjh;
        var layindex;
        var url = path + "/system/getDzdaTagDetailByZjh";
        $.ajax({
            url: url,
            type: "POST",
            data: params,
            beforeSend: function () {
                layindex = layLoad();
            },
            success: function (result) {
                if (result) {
                    var success = result.success;
                    var content = result.content;
                    if (success == true && content) {
                        content = eval("(" + content + ")");
                        var info = content.info;
                        var html = '';
                        html += "<table class='mark-table'>";
                        var infos = info.split('$');
                        for (var i = 0; i < infos.length; i++) {
                            var details = infos[i].split('^');
                            html += "<tr>";
                            html += '<th>家属身份证号</th>';
                            if (zjh == details[0]) {
                                html += '<td style="color:red;">' + details[0] + '</td>';
                            } else {
                                html += '<td>' + details[0] + '</td>';
                            }
                            html += '<th>家属与户主关系</th>';
                            html += '<td>' + details[1] + '</td>';
                            html += "</tr>";
                            html += "<tr>";
                            html += '<th>前科人员身份证号</th>';
                            html += '<td>' + details[2] + '</td>';
                            html += '<th>前科人员与户主关系</th>';
                            html += '<td>' + details[3] + '</td>';
                            html += "</tr>";
                            html += "<tr>";
                            var details_arr = details[4].split('||');
                            html += '<th>前科人员涉案详情</th>';
                            html += '<td colspan="3">';
                            for (var x = 0; x < details_arr.length; x++) {
                                html += details_arr[x];
                                if (x != details_arr.length - 1) {
                                    html += '<br/><br/>';
                                }
                            }
                            html += '</td>';
                            html += "</tr>";
                            html += "<tr><td colspan='4'></td></tr>";
                        }
                        html += '</table>';
                        layer.open({
                            title: '标签详情展示',
                            type: 1,
                            skin: 'layui-layer-molv',
                            closeBtn: 1,
                            anim: 2,
                            shadeClose: true,
                            area: ['700px', '400px'],
                            content: html
                        });
                    }
                }
                layClose(layindex);
            },
            error: function (XmlHttpRequest, textStatus, errorThrown) {
                console.log("系统异常！");
                layAlert("系统异常！", "fail");
            },
            complete: function (XMLHttpRequest, textStatus) {
                console.log("url:[ " + url + " ] 请求结果：[ " + textStatus + " ]");
                //关闭加载提示
                layClose(layindex);
            }
        });
    }
}




/**
 * 人员头像进行打标（多个）模型分析
 * 使用说明：需提供参数param对象，包含zjh（人员证件号）、xm（人员姓名）
 */
function loadRyBsNew_mxfx(zjhm) {
    //先将div元素插入，然后在往div中填充各类标识
    if (zjhm != null) {
        var params = new Object();
        //1.人员标识
        var rybs_div = "rybs_" + zjhm;
        var dzda_rybs_div = "dzda_rybs_" + zjhm;
        //+++
        //1.跟盯、可疑、重点
        var u =	"/jbxx/jbxxAliasData?zjh=" + zjhm;
        jQuery.ajax({
            url: u,
            type: "GET",
            data: params,
            success: function (data) {
            	var ryzjh = data.content.zjh;
                var mark = data.content;
                var rybz = "";
                var lktb = "";
                //1.人员标识
                if (mark != undefined && mark != "null") {
                    var kyry = mark.kyry != undefined ? mark.kyry : "";//可疑人员
                    var zddqry = mark.zddqry != undefined ? mark.zddqry : "";//重点地区人员
                    var sfgdry = mark.sfgdry != undefined ? mark.sfgdry : "";//是否跟盯人员
                    var rylb = mark.rylb != undefined ? mark.rylb : "";//人员类别
                    var sxqk = mark.sxqk != undefined ? mark.sxqk : "";//视讯人员
                    var qwgjqk = mark.qwgjqk != undefined ? mark.qwgjqk : "";//前往过其他国家
                    var wghjqk = mark.wghjqk != undefined ? mark.wghjqk : "";//取得过国外户籍
                    var lkjb = mark.lkjb != undefined ? mark.lkjb : "";//列控级别
                    var skxs = mark.skxs != undefined ? mark.skxs : "";//涉恐系数
                    var qf = mark.qf != undefined ? mark.qf : "";//
                    if (kyry == '1') {
                        rybz += "<img src='../../images/sdrybs/kyry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='可疑人员'/>";
                    }
                    if (zddqry == '1') {
                        rybz += "<img src='../../images/sdrybs/zddqry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点地区人员'/>";
                    }
                    if (sfgdry > 0) {
                        rybz += "<img src='../../images/sdrybs/gd_red.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='跟盯人员'/>";
                    }
                    if (sxqk > 0) {
                        rybz += "<img src='../../images/sdrybs/sxqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='视询人员'/>";
                    }
                    if (qwgjqk > 0) {
                        rybz += "<img src='../../images/sdrybs/qwgjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='前往过其他国家'/>";
                    }
                    if (wghjqk > 0) {
                        rybz += "<img src='../../images/sdrybs/wghjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='取得国外户籍'/>";
                    }
                    if (qf != "") {
                        if (qf.indexOf("1") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-1jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='一级重点人'/>";
                        }
                        if (qf.indexOf("2") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-2jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='二级重点人'/>";
                        }
                        if (qf.indexOf("3") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-3jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='三级重点人'/>";
                        }
                        if (qf.indexOf("4") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-zdgzr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点关注人'/>";
                        }
                        if (qf.indexOf("5") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-gzrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='关注人'/>";
                        }
                        if (qf.indexOf("6") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-lkrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='列控人'/>";
                        }
                        if (qf.indexOf("7") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-zzdry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='准重点人'/>";
                        }
                        if (qf.indexOf("98") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-czrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='常口'/>";
                        }
                        if (qf.indexOf("99") > -1) {
                            rybz += "<img src='../../images/sdrybs/rylb_btn/icon-ldrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='流口'/>";
                        }

                    }
                    if (lkjb != undefined && lkjb != "") {
                        if (lkjb == "一级") {
                            lktb = "	<div class='com_lkjb_icon1'></div>";
                        } else if (lkjb == "二级") {
                            lktb = "	<div class='com_lkjb_icon2'></div>";
                        } else if (lkjb == "三级") {
                            lktb = "	<div class='com_lkjb_icon3'></div>";
                        }
                    }
                    if (rylb.length > 0) {
                        var rylb_arr = rylb.split(",");
                        var rylbMap = {
                            "15":"../../images/sdrybs/rylb_btn/rylb_btn_15.png",
                            "14": "../../images/sdrybs/rylb_btn/rylb_btn_14.png",
                            "13":"../../images/sdrybs/rylb_btn/rylb_btn_13.png",
                            "12": "../../images/sdrybs/rylb_btn/rylb_btn_12.png",
                            "11": "../../images/sdrybs/rylb_btn/rylb_btn_11.png",
                            "10": "../../images/sdrybs/rylb_btn/rylb_btn_10.png",
                            "9": "../../images/sdrybs/rylb_btn/rylb_btn_09.png",
                            "8": "../../images/sdrybs/rylb_btn/rylb_btn_08.png",
                            "7": "../../images/sdrybs/rylb_btn/rylb_btn_07.png",
                            "6": "../../images/sdrybs/rylb_btn/rylb_btn_06.png",
                            "5": "../../images/sdrybs/rylb_btn/rylb_btn_05.png",
                            "4":  "../../images/sdrybs/rylb_btn/rylb_btn_04.png",
                            "3":  "../../images/sdrybs/rylb_btn/rylb_btn_03.png",
                            "2":  "../../images/sdrybs/rylb_btn/rylb_btn_02.png",
                            "1": "../../images/sdrybs/rylb_btn/rylb_btn_01.png",
                        };
                      
                        for (var k = 0; k < rylb_arr.length; k++) {
                            var k_rylb = rylb_arr[k];
                            if (k_rylb != undefined) {
                                rybz += "<img src='" + rylbMap[k_rylb] + "' width='13px' height='13px' style='margin-left:2px;margin-top:9px;'/>";
                            }
                        }
                    }
                }
                var dic_content = "	<div class='com_flbs_div'>" + rybz + "</div>";
               $(".load-bq").html(dic_content);
            }
        });
    } 
}




function loadRyBsNew_rygk(zjhm,i) {
	//先将div元素插入，然后在往div中填充各类标识
	if (zjhm != null) {
		var params = new Object();
		//1.人员标识
		var rybs_div = "rybs_" + zjhm;
		var dzda_rybs_div = "dzda_rybs_" + zjhm;
		//+++
		//1.跟盯、可疑、重点
		var u =	"/jbxx/jbxxAliasData?zjh=" + zjhm;
		jQuery.ajax({
			url: u,
			type: "GET",
			data: params,
			success: function (data) {
				var ryzjh = data.content.zjh;
				var mark = data.content;
				var rybz = "";
				var lktb = "";
				//1.人员标识
				if (mark != undefined && mark != "null") {
					var kyry = mark.kyry != undefined ? mark.kyry : "";//可疑人员
					var zddqry = mark.zddqry != undefined ? mark.zddqry : "";//重点地区人员
					var sfgdry = mark.sfgdry != undefined ? mark.sfgdry : "";//是否跟盯人员
					var rylb = mark.rylb != undefined ? mark.rylb : "";//人员类别
					var sxqk = mark.sxqk != undefined ? mark.sxqk : "";//视讯人员
					var qwgjqk = mark.qwgjqk != undefined ? mark.qwgjqk : "";//前往过其他国家
					var wghjqk = mark.wghjqk != undefined ? mark.wghjqk : "";//取得过国外户籍
					var lkjb = mark.lkjb != undefined ? mark.lkjb : "";//列控级别
					var skxs = mark.skxs != undefined ? mark.skxs : "";//涉恐系数
					var qf = mark.qf != undefined ? mark.qf : "";//
					if (kyry == '1') {
						rybz += "<img src='../../images/sdrybs/kyry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='可疑人员'/>";
					}
					if (zddqry == '1') {
						rybz += "<img src='../../images/sdrybs/zddqry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点地区人员'/>";
					}
					if (sfgdry > 0) {
						rybz += "<img src='../../images/sdrybs/gd_red.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='跟盯人员'/>";
					}
					if (sxqk > 0) {
						rybz += "<img src='../../images/sdrybs/sxqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='视询人员'/>";
					}
					if (qwgjqk > 0) {
						rybz += "<img src='../../images/sdrybs/qwgjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='前往过其他国家'/>";
					}
					if (wghjqk > 0) {
						rybz += "<img src='../../images/sdrybs/wghjqk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='取得国外户籍'/>";
					}
					if (qf != "") {
						if (qf.indexOf("1") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-1jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='一级重点人'/>";
						}
						if (qf.indexOf("2") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-2jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='二级重点人'/>";
						}
						if (qf.indexOf("3") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-3jzdr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='三级重点人'/>";
						}
						if (qf.indexOf("4") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-zdgzr.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='重点关注人'/>";
						}
						if (qf.indexOf("5") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-gzrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='关注人'/>";
						}
						if (qf.indexOf("6") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-lkrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='列控人'/>";
						}
						if (qf.indexOf("7") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-zzdry.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='准重点人'/>";
						}
						if (qf.indexOf("98") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-czrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='常口'/>";
						}
						if (qf.indexOf("99") > -1) {
							rybz += "<img src='../../images/sdrybs/rylb_btn/icon-ldrk.png' width='15px' height='12px' style='cursor:pointer;margin-top: 9px;' title='流口'/>";
						}
						
					}
					if (lkjb != undefined && lkjb != "") {
						if (lkjb == "一级") {
							lktb = "	<div class='com_lkjb_icon1'></div>";
						} else if (lkjb == "二级") {
							lktb = "	<div class='com_lkjb_icon2'></div>";
						} else if (lkjb == "三级") {
							lktb = "	<div class='com_lkjb_icon3'></div>";
						}
					}
					if (rylb.length > 0) {
						var rylb_arr = rylb.split(",");
						var rylbMap = {
								"15":"../../images/sdrybs/rylb_btn/rylb_btn_15.png",
								"14": "../../images/sdrybs/rylb_btn/rylb_btn_14.png",
								"13":"../../images/sdrybs/rylb_btn/rylb_btn_13.png",
								"12": "../../images/sdrybs/rylb_btn/rylb_btn_12.png",
								"11": "../../images/sdrybs/rylb_btn/rylb_btn_11.png",
								"10": "../../images/sdrybs/rylb_btn/rylb_btn_10.png",
								"9": "../../images/sdrybs/rylb_btn/rylb_btn_09.png",
								"8": "../../images/sdrybs/rylb_btn/rylb_btn_08.png",
								"7": "../../images/sdrybs/rylb_btn/rylb_btn_07.png",
								"6": "../../images/sdrybs/rylb_btn/rylb_btn_06.png",
								"5": "../../images/sdrybs/rylb_btn/rylb_btn_05.png",
								"4":  "../../images/sdrybs/rylb_btn/rylb_btn_04.png",
								"3":  "../../images/sdrybs/rylb_btn/rylb_btn_03.png",
								"2":  "../../images/sdrybs/rylb_btn/rylb_btn_02.png",
								"1": "../../images/sdrybs/rylb_btn/rylb_btn_01.png",
						};
						
						for (var k = 0; k < rylb_arr.length; k++) {
							var k_rylb = rylb_arr[k];
							if (k_rylb != undefined) {
								rybz += "<img src='" + rylbMap[k_rylb] + "' width='13px' height='13px' style='margin-left:2px;margin-top:9px;'/>";
							}
						}
					}
				}
				var dic_content = "	<div class='com_flbs_div'>" + rybz + "</div>";
				$(".load-bq"+i).html(dic_content);
			}
		});
	} 
}


